﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="recordlist.aspx.cs" Inherits="UI.manage.page.active.recordlist" %>
<%@ Import Namespace="Common" %>
<style>
table td img{width:50px; height:50px; border-radius:25px;}
</style>
<div style="margin: 35px;">
    <table class="layui-table">
    <colgroup>
      <col width="80">
      <col>
      <col width="80">
      <col width="120">
      <col width="110">
    </colgroup>
    <thead>
      <tr>
        <th>头像</th>
        <th>昵称</th>
        <th>性别</th>
        <th>红包金额</th>
        <th>时间</th>
      </tr>
    </thead>
     <tbody id="layer-table">
        <tr><td colspan="8" class="center">数据加载中...</td></tr>
    </tbody>
    <script id="data-table" type="text/html">
      {{#  layui.each(d, function(index, item){ }}
      <tr>
        <td><img src="{{item.HeadImg}}" /></td>
        <td>{{item.NickName}}</td>
        <td>{{item.Sex.ToSex()}}</td>
        <td>{{item.Money}}</td>
        <td>{{item.CreateDate}}</td>
      </tr>
      {{#  }); }}
      </script>
  </table>
</div>
<script>
    function Init_Pager() {
            var data = {};
            data.act = "Find_PrizeRecord";
            data.id = '<%=Request["id"] %>';
            data.pageindex = 1;
            data.sign = GetSign(data.act);
            Loading();
            Ajax.Post("/tools/Admin.ashx", data, function (r) {
                var json = $.parseJSON(r);
                if (json.state) {
                    Data(json.data.list, json.data.count);
                }
                else {
                    LayerBox.Error(json.msg);
                }
            });
        };
        Init_Pager();
</script>